#include <spdlog/spdlog.h>
#include <unistd.h>
#include "../src/MQTT.hpp"

MQTT mqtt;
int main()
{
  mqtt.funcAllStartShot=[](){spdlog::info("Command: funcAllStartShot");};
  mqtt.funcAllStopShot=[](){spdlog::info("Command: funcAllStopShot");};
  mqtt.funcAllShotStatus=[](){spdlog::info("Command: funcAllShotStatus"); return true;};
  mqtt.funcGetAllDevice=[]()->std::vector<std::string>{spdlog::info("Command: funcGetAllDevice"); return {"TESTDEVICE1","TESTDEVICE2"};};

  mqtt.Boot({
    .clientID="supermatrix_test_project",
    .username="supermatrix_test",
    .password="supermatrix_test",
    .ipaddr="9f1a27fc-db77-e97a-35fa-8d0d602616a0.openfrp.cc",
    .port=59640
  });
  while(sleep(10)==0) ;

}
